package top.beiermode.geektime.projects.user.management;

import top.beiermode.geektime.projects.user.domain.User;

import javax.management.MBeanInfo;
import javax.management.StandardMBean;

/**
 * TODO
 *
 * @author Chen Song
 * @since
 */
public class StandardMBeanDemo {

    public static void main(String[] args) throws Exception {
        StandardMBean standardMBean = new StandardMBean(new UserManager(new User()), UserManagerMBean.class);

        MBeanInfo mBeanInfo = standardMBean.getMBeanInfo();
        System.out.println(mBeanInfo);
    }

}
